import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class Test{

    public static void main(String[] args) {
        int a = Integer.parseInt("1234",10);
        System.out.println(a);
        a = Integer.parseInt("1010",2);
        System.out.println(a);
        a = Integer.valueOf("1234");
        System.out.println(a);
    }
}
